<?php
/**
 * @file
 */

function ffs_entity_pages($bundle) {
  if (!$view = views_get_view($bundle)) {
    $build['content'] = array(
      '#type' => 'markup',
      '#markup' => t('No content!')
    );
    return $build;
  }
  return views_embed_view($bundle, 'page');
}